<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加任务反馈</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	
	<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
	<script type="text/javascript" src="<%=path%>/resources/script/proms/feedback/feedback_add.js"></script>

  </head>
  
  <body>
    <div class="easyui-layout" fit="true">
    	<%-- <div data-options="region:'north', title:'任务详情'" style="height : 220px;">
    		<table class="edit-table">
				<tr>
					<th>所属指标：</th>
					<td>
						<input type="hidden" id="projectIndexId" name="projectIndexId" value="${feedBack.task.projectIndexId }" class="easyui-validatebox" style="width: 200px;" />
						<label>${feedBack.task.projectIndexName }</label>
					</td>
				</tr>
				<tr>
					<th>任务主题：</th>
					<td>
						<label>${feedBack.task.name }</label>
					</td>
				</tr>
				<tr>
					<th>计划完成时间段：</th>
					<td><label>${feedBack.task.startTime }</label>～<label>${feedBack.task.endTime }</label></td>
				</tr>
				<tr>
					<th>资金来源</th>
					<td><label id="fundsources_label"></label><input id="fundSources" name="fundSources" type="hidden" value="${feedBack.task.fundSources }" /></td>
				</tr>
				<tr>
					<th>计划使用资金：</th>
					<td>
						<label>￥${feedBack.task.planAmount }</label>
						<input type="hidden" id="planAmount" name="planAmount" value="${feedBack.task.planAmount }"/>
					</td>
				</tr>
				<tr>
					<th>任务描述：</th>
					<td><textarea id="remark" name="remark" readonly="readonly" disabled="disabled" style="width: 98%;height: 80px;">${feedBack.task.remark }</textarea></td>
				</tr>
			</table>
    	</div> --%>
   		<div data-options="region:'center', title:'任务反馈'">
   			<div class="easyui-layout" fit="true" width="100%" height="100%">
		   		<div region="center" border="false">
					<form id="form" method="post">
						<input id="page_type" value="add" type="hidden"/>
						<input id="id" name="id" type="hidden" />
						<input id="taskId" name="taskId" type="hidden" value="${feedBack.task.id }" />
						<input id="planId" name="planId" type="hidden" value="${feedBack.taskPlan.id }" />
						<input id="auditStatus" name="status" value="0" type="hidden" />
						<table class="edit-table">
							<tr>
								<th>反馈主题：</th>
								<td><input type="text" id="name" name="name" value="${feedBack.taskPlan.name }" class="easyui-validatebox edit-input" style="width: 450px;" /></td>
							</tr>
							<tr>
								<th>预算资金：</th>
								<td>￥<input id="preAmount" name="preAmount" readonly="readonly" disabled="disabled" value="${feedBack.taskPlan.planAmount }" class="easyui-numberbox" />元</td>
							</tr>
							<tr>
								<th>实际资金使用：</th>
								<td>￥<input id="factAmount" name="factAmount" value="" class="easyui-numberbox" />元</td>
							</tr>
							<tr>
								<th>描述：</th>
								<td><textarea id="remark" name="remark" class="easyui-validatebox" style="width:  450px;height: 80px;"></textarea></td>
							</tr>
							<tr>
								<th>当前任务总体进度：</th>
								<td><input id="task_progress" name="task_progress" value="${feedBack.task.progress }" readonly="readonly" disabled="disabled" class="easyui-numberbox" />% </td>
							</tr>
							<tr>
								<th>反馈后整体任务进度：</th>
								<td><input id="progress" name="progress" value="" class="easyui-numberbox" />% <font color="red">（注:该比例是指本次反馈完成后整体项目进度，不得小于当前任务总体进度值）</font></td>
							</tr>
							<tr>
								<th>预期成果：</th>
								<td><textarea id="expectResult" name="expectResult" disabled="disabled" value="${feedBack.taskPlan.expectResult }" class="easyui-validatebox" style="width: 450px;height: 80px;"></textarea></td>
							</tr>
							<tr>
								<th>资金类佐证材料：</th>
								<td><div id="funds_fileupload"></div></td>
							</tr>
							<tr>
								<th>成果类材料：</th>
								<td><div id="result_fileupload"></div></td>
							</tr>
						</table> 
					</form>
		   		</div>
		   		<div region="south" border="false" style="text-align: right; height: 35px; line-height: 8px; padding:5px 5px 0 0;">
		   			<a id="btnSave" class="easyui-linkbutton" icon="icon-ok" alt="提交审核" href="javascript:void(0);">保存</a>
		   			<a id="btnAudit" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0);">提交审核</a>
		   			<a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0);">关闭</a>
		   		</div>
		   	</div>
   		</div>
   	</div>
  </body>
</html>
